import 'dart:io';

void main(List<String> args) {
  print("main function start");
  print(getNetworkData());
  print("main function end");
}

Future<String> getNetworkData() async {
  var result = await Future.delayed(Duration(seconds: 3), () {
    return "network data";
  }).then((value) {
    print("结果是$value");
  });
  print("哈哈");
  return "请求的数据：$result";
}
